//
//  MSFilterButton.m
//  MSJD
//
//  Created by 箭军刘 on 2018/10/21.
//  Copyright © 2018年 xiangbo. All rights reserved.
//

#import "MSFilterButton.h"

@interface MSFilterButton()

@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UIImageView *statusIcon;


@end

@implementation MSFilterButton

- (void)changeTitle:(NSString *)title {
    self.titleLabel.text = [MSSafeObject stringInfo:title];
}

- (void)changeStatus:(BOOL)isShow {
    NSString *imageName = isShow?@"filter_up":@"filter_down";
    [self.statusIcon setImage:[UIImage imageNamed:imageName]];
}

#pragma mark - Event Response

- (IBAction)buttonClick:(id)sender {
    if (self.FilterButtonClickBlock) {
        self.FilterButtonClickBlock();
    }
}

#pragma mark -  Memory Method

- (void)dealloc {
    NSLog(@"%s", __func__);
}

@end
